<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
    <title>后台管理系统</title>
    <link href="static/admin/css/style.css" type="text/css" rel="stylesheet">
    <script  src="static/admin/js/jquery.js" type="text/javascript"></script>
    <script  src="static/admin/js/calendar.js" type="text/javascript"></script>
    <script type="text/javascript">
        var t_watermark = 'watermark.png';
    </script>
    <script type="text/javascript" src="static/xheditor/xheditor-zh-cn.min.js"></script>
    <link type="text/css" href="static/xheditor/xheditor_skin/default/ui.css" rel="stylesheet" />

    <!-- 配置文件 -->
    <script type="text/javascript" src="static/ueditor/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="static/ueditor/ueditor.all.js"></script>
</head>
<body>
<div class="top">
    <h1>后台管理</h1>
    <div class="user">当前用户：<span><?php echo $_COOKIE['nickname']; ?></span><a href="/index.php?c=admins&m=logout">【退出】</a></div>
</div>

<div class="side">
    <ul id="menu">
        <li id="mine"><a href="index.php?d=admin&c=mine">个人中心</a></li>
        <li id="type"><a href="index.php?d=admin&c=type">栏目管理</a></li>
        <li id="article_list"><a href="index.php?d=admin&c=article_list">内容管理</a></li>
        <li id="tag"><a href="index.php?d=admin&c=tag">tag标签管理</a></li>
        <li id="section"><a href="index.php?d=admin&c=section">区块管理</a></li>
        <li id="model"><a href="index.php?d=admin&c=model">模板管理</a></li>
        <li id="member"><a href="index.php?d=admin&c=member">会员管理</a></li>
        <li id="setting"><a href="index.php?d=admin&c=setting">网站设置</a></li>
        <li id="tool"><a href="index.php?d=admin&c=tool">网站工具</a></li>
    </ul>
</div>
<script type="text/javascript">
    $(function() {
        get_bg_color();
    })
    function get_bg_color(){
        var url = window.location.href;
        var length = $("#menu li").length;
        for(var i=0; i<length; i++){
            var uri = $("#menu li").eq(i).attr("id");
            if(url.match(uri)){
                $("#menu li").eq(i).addClass("current").siblings().removeClass('current');
                break;
            }
        }
    }
</script>